package sk.fiit.icp.contact.view;

import org.apache.wicket.markup.html.panel.Panel;
import org.apache.wicket.model.CompoundPropertyModel;

import sk.fiit.icp.components.SignInSession;
import sk.fiit.icp.data.Users;

public class ContactPanel extends Panel {

	public ContactPanel(String id) {
		super( id );
		Users user = ((SignInSession) getSession()).getUser();

		ContactForm registrationForm = new ContactForm( "contactForm", new CompoundPropertyModel<Users>( user ) );
		add( registrationForm );
		setOutputMarkupId( true );

	}

}
